package com.kly.sc.api.application.service.user;

import com.fqgj.base.services.redis.RedisClient;
import com.fqgj.common.api.Response;
import com.kly.dto.MemberDto;
import com.kly.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户行为
 */
@Service
public class UserBehaviorService {
    @Resource
    RedisClient redisClient;

    @Resource
    MemberService memberService;

    public boolean test(String userCode, String appCode){
        Response<MemberDto> memberInfo = memberService.getMemberInfo(userCode, appCode);
        if (memberInfo!=null){
            return true;
        }
            return false;
    }
}
